package widget.dress.mode
{
	import flash.display.BitmapData;

	public class CutModel{
		private var dataList:Vector.<BitmapData> = null;
		public function CutModel()
		{
			dataList = new Vector.<BitmapData>();
		}
		
		public function addBitmapData(bitmap:BitmapData):void
		{
			if(bitmap == null) return;
			dataList.push(bitmap);
		}
		
		public function getBitmapData(index:uint):BitmapData
		{
			if(index >= dataList.length) return null;
			return dataList[index];
		}
		
		public function getCloneData(index:uint):BitmapData
		{
			if(index >= dataList.length) return null;
			return BitmapData(dataList[index]).clone();
		}
		
		public function get length():uint
		{
			return dataList.length;
		}
	}
}